X-Git-Url: http://git.cyclocoop.org//%22http:/%22.attribut_html%28%24lesurls%5B%24numero%5D%29.%22/%22?a=blobdiff_plain;f=resources%2Fsrc%2Fmediawiki.debug%2Fdebug.js;h=86bc44abf9a6a98fcf310f858db60a8c8de17170;hb=04179d3a5ce90f3f967d0e004fdf68bd45b04541;hp=32dbdc199eacd974cce54c96f8d1d8e1ff003cb0;hpb=c90f3220a306f44c976283757b1796d1e8d746e9;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/src/mediawiki.debug/debug.js b/resources/src/mediawiki.debug/debug.js index 32dbdc199e..86bc44abf9 100644 --- a/resources/src/mediawiki.debug/debug.js +++ b/resources/src/mediawiki.debug/debug.js @@ -55,7 +55,7 @@ hovzer.$.append( this.$container ); hovzer.update(); - $( '.mw-debug-panelink' ).click( this.switchPane ); + $( '.mw-debug-panelink' ).on( 'click', this.switchPane ); }, /** @@ -90,6 +90,8 @@ // Hide the current pane if ( requestedPaneId === currentPaneId ) { + // FIXME: Use CSS transition + // eslint-disable-next-line no-jquery/no-slide $currentPane.slideUp( updateHov ); debug.$container.data( 'currentPane', null ); return; @@ -98,6 +100,8 @@ debug.$container.data( 'currentPane', requestedPaneId ); if ( currentPaneId === undefined || currentPaneId === null ) { + // FIXME: Use CSS transition + // eslint-disable-next-line no-jquery/no-slide $requestedPane.slideDown( updateHov ); } else { $currentPane.hide(); @@ -294,10 +298,10 @@ $table = $( '' ).attr( 'id', 'mw-debug-querylist' ); $( '' ) - .append( $( '
' ).text( '#' ).css( 'width', '4em' ) ) - .append( $( '' ).text( 'SQL' ) ) - .append( $( '' ).text( 'Time' ).css( 'width', '8em' ) ) - .append( $( '' ).text( 'Call' ).css( 'width', '18em' ) ) + .append( $( '' ).attr( 'scope', 'col' ).text( '#' ).css( 'width', '4em' ) ) + .append( $( '' ).attr( 'scope', 'col' ).text( 'SQL' ) ) + .append( $( '' ).attr( 'scope', 'col' ).text( 'Time' ).css( 'width', '8em' ) ) + .append( $( '' ).attr( 'scope', 'col' ).text( 'Call' ).css( 'width', '18em' ) ) .appendTo( $table ); for ( i = 0, length = this.data.queries.length; i < length; i += 1 ) { @@ -348,12 +352,12 @@ $table = $( '' ).appendTo( $unit ); $( '' ) - .html( '' ) + .html( '' ) .appendTo( $table ); for ( key in data ) { $( '' ) - .append( $( '
KeyValueKeyValue
' ).text( key ) ) + .append( $( '' ).attr( 'scope', 'row' ).text( key ) ) .append( $( '' ).text( data[ key ] ) ) .appendTo( $table ); }